package com.lhz.project.system.model.vo.auth;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 参数类
 *
 * @author LiHuaZhi
 * @since 2020-06-23 17:02:26
 */
@Data
@Schema(description = "操作日志列表")
public class OperateLogVo {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
    private String id;

    @Schema(description = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String model;

    @Schema(description = "操作名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;

    @Schema(description = "请求ip", requiredMode = Schema.RequiredMode.REQUIRED)
    private String ip;

    @Schema(description = "浏览器", requiredMode = Schema.RequiredMode.REQUIRED)
    private String browser;

    @Schema(description = "操作系统", requiredMode = Schema.RequiredMode.REQUIRED)
    private String os;

    @Schema(description = "操作账户", requiredMode = Schema.RequiredMode.REQUIRED)
    private String userName;

    @Schema(description = "请求类型", requiredMode = Schema.RequiredMode.REQUIRED)
    private String httpMethod;

    @Schema(description = "是否成功：1-成功 2-失败", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer isSuccess;

    @Schema(description = "响应时长(ms)", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long time;

    @Schema(description = "操作时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime createTime;
}